<{include file="header.html"}>
	<div class="one_third">
		<div class="box_tool">
			<div class="box_head"><{$smarty.const._LB_TOOLBOX|utf8_escape_html}></div>
			<div class="box_content">
				<a href="<{$smarty.const.APPLICATION_URL}>/product/form/?id=<{$product->ID}>">
					<{$smarty.const._LB_EDIT_PRODUCT|utf8_escape_html}>
				</a>
				<hr/>
				<a href="<{$smarty.const.APPLICATION_URL}>/product_info/form/?id_product=<{$product->ID}>">
					<{$smarty.const._LB_ADD_PRODUCT_INFO|utf8_escape_html}>
				</a>
				<br/>
				<a href="<{$smarty.const.APPLICATION_URL}>/product_download/form/?id_product=<{$product->ID}>">
					<{$smarty.const._LB_ADD_PRODUCT_DOWNLOAD|utf8_escape_html}>
				</a>
				<br/>
				<a href="<{$smarty.const.APPLICATION_URL}>/product_image/form/?id_product=<{$product->ID}>">
					<{$smarty.const._LB_ADD_PRODUCT_IMAGE|utf8_escape_html}>
				</a>
			</div>
		</div>
		<div class="spacer"></div>
	</div>

	<div class="two_third">
	<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_PRODUCT_DETAIL|utf8_escape_html}></div>
		<div class="box_content">
			<table>
				<tr>
					<td ><{$smarty.const._LB_NAME|utf8_escape_html}>&nbsp;:&nbsp;</td>
					<td colspan="3"><{$product->NAME|utf8_escape_html}></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_CATEGORY|utf8_escape_html}>&nbsp;:&nbsp;</td>
					<td colspan="3"><{$product->CATEGORY_TITLE|utf8_escape_html}></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_POS|utf8_escape_html}>&nbsp;:&nbsp;</td>
					<td colspan="3"><{$product->POS|utf8_escape_html}></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_DESCRIPTION|utf8_escape_html}>&nbsp;:&nbsp;</td>
					<td colspan="3"><{$product->DESCRIPTION}></td>
				</tr>
			</table>
		</div>
	</div>
	<div class="spacer"></div>
	<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_PRODUCT_IMAGE|utf8_escape_html}></div>
		<div class="box_content">
			<div>
				<{if $product->product_images }>
				<table>
					<{foreach from=$product->product_images key=id item=product_image}>
					<tr>
						<td width="40%"><{$product_image.IMAGE}></td>
						<td>
							<img width="180" height="150" style="display: block; opacity: 1; width: 180px; height: 150px; cursor: pointer;" src="<{$smarty.const.PRODUCT_IMAGE_URL}>/<{$product_image.IMAGE}>">
						</td>
						<td width="6%">
							<a href="<{$smarty.const.APPLICATION_URL}>/product_image/form/?id=<{$product_image.ID}>">
								<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" />
							</a>
							<a onclick="return confirm('<{$smarty.const._MSG_PRODUCT_IMAGE_DELETE_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/product_image/delete/?id=<{$product_image.ID}>">
								<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
							</a>
						</td>
					</tr>
					<{/foreach}>
				</table>
				<{else}>
					<{$smarty.const._LB_NO_ITEM|utf8_escape_html}>
				<{/if}>
			</div>
		</div>
	</div>
	<div class="spacer"></div>
	<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_PRODUCT_DOWNLOAD|utf8_escape_html}></div>
		<div class="box_content">
			<div>
				<{if $product->product_downloads }>
					<table>
					<{foreach from=$product->product_downloads key=id item=product_download}>
					<tr>
						<td>
							<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_REGION_SMALL}>" alt="" /> <{$product_download.NAME|utf8_escape_html}>
						</td>
						<td>
							<{$product_download.FILE|utf8_escape_html}>
						</td>
						<td width="6%">
							<a href="<{$smarty.const.APPLICATION_URL}>/product_download/form/?id=<{$product_download.ID}>">
								<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" />
							</a>
							<a onclick="return confirm('<{$smarty.const._MSG_PRODUCT_DOWNLOAD_DELETE_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/product_download/delete/?id=<{$product_download.ID}>">
								<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
							</a>
						</td>
					</tr>
					<{/foreach}>
					</table>
				<{else}>
					<{$smarty.const._LB_NO_ITEM|utf8_escape_html}>
				<{/if}>
			</div>
		</div>
	</div>
	<div class="spacer"></div>
	<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_PRODUCT_INFO|utf8_escape_html}></div>
		<div class="box_content">
			<div>
				<{if $product->product_infos }>
					<{foreach from=$product->product_infos key=id item=product_info}>
						<div class="object">
						<div class="head">
							<span class="right">
								<a href="<{$smarty.const.APPLICATION_URL}>/product_info/form/?id=<{$product_info.ID}>">
									<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" />
								</a>
								<a onclick="return confirm('<{$smarty.const._MSG_PRODUCT_INFO_DELETE_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/product_info/delete/?id=<{$product_info.ID}>">
									<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
								</a>
							</span>
							<div style="margin-left: <{$margin}>px">
								<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_REGION_SMALL}>" alt="" /> <{$product_info.NAME|utf8_escape_html}>
								<div class="content"><{$product_info.CONTENT}></div>
							</div>
						</div>
						</div>
					<{/foreach}>
				<{else}>
					<{$smarty.const._LB_NO_ITEM|utf8_escape_html}>
				<{/if}>
			</div>
		</div>
	</div>
	</div>
<{include file="footer.html"}>